package dev.ece.suit.loader.models.fbx;

import java.util.List;

public class FBXAnimationLayer {

	public final static String ANIMATION_LAYER = "AnimationLayer";
	
	private long id;
	
	private String name;
	
	public static FBXAnimationLayer[] parseFBXAnimationLayer(List<FBXElement> elements) {
		if(elements != null && !elements.isEmpty()) {
			FBXAnimationLayer[] layers = new FBXAnimationLayer[elements.size()];
			FBXElement element = null;
			for(int i=0; i<layers.length; i++) {
				layers[i] = new FBXAnimationLayer();
				element = elements.get(i);
				layers[i].id = (Long) element.getProperties()[0].getValue();
				layers[i].name = (String) element.getProperties()[1].getValue();
			}
			return layers;
		}
		return null;
	}

	public long getId() {
		return id;
	}

	public String getName() {
		return name;
	}
	
}
